package org.dromara.mall.domain.bo;

import org.dromara.mall.domain.TerMallRegional;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.util.List;

/**
 * 区域信息业务对象 ter_mall_regional
 *
 * @author xch
 * @date 2025-06-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TerMallRegional.class, reverseConvertGenerate = false)
public class TerMallRegionalBo extends BaseEntity {

    /**
     * 区域id
     */
    @NotNull(message = "区域id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 分组名
     */
    @NotBlank(message = "分组名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String groupName;

    /**
     * 纬度
     */
    private String latitude;

    /**
     * 经度
     */
    private String longitude;

    /**
     * 完整地址
     */
    private String address;

    /**
     * 所在城市
     */
    private String city;

    /**
     * 图片路径
     */
    private String imgUrl;

    /**
     * 电话
     */
    private String phone;

    /**
     * 排序号
     */
    private Long orderNum;

    /**
     * 所处区域id
     */
    private Long districtId;

    /**
     * 区域名称
     */
    private String districtName;

    /**
     * 所处城市id
     */
    private Long cityId;

    /**
     * 城市名称
     */
    private String cityName;

    /**
     * 所处省份id
     */
    private Long provinceId;

    /**
     * 省份名称
     */
    private String provinceName;
    private String delFlag;
    private List<Integer> area;
}
